package com.example.rwq_test.threadLocal;

import java.text.SimpleDateFormat;

/**
 * MyThreadLocalUtil
 *
 * @author renweiqiang
 * @version 1.0.0
 * @createTime 2024/4/15
 */
public class MyThreadLocalUtil {
    private static final ThreadLocal<Integer> INTEGER_THREAD_LOCAL = new ThreadLocal<>();
    private static final ThreadLocal<SimpleDateFormat> SDF_THREAD_LOCAL = new ThreadLocal<>();

    public static ThreadLocal<Integer> getIntegerThreadLocal() {
        return INTEGER_THREAD_LOCAL;
    }

    public static ThreadLocal<SimpleDateFormat> getSdfThreadLocal() {
        return SDF_THREAD_LOCAL;
    }
}
